const { exec } = require("child_process");
const path = require("path");
const script1FilePath = path.join(__dirname, "script1.js")

const runScripts = [
  `node ${script1FilePath}`,
];

runScripts.forEach((script) => {
  exec(script, (error, stdout, stderr) => {
    if(error){
      console.error(`exec error: ${error}`);
      return;
    };

    console.log(`stdout: ${stdout}`);
    console.log(`stderr: ${stderr}`);
  })
});


